package com.myblog.mapper;

import com.myblog.entity.Article;
import com.myblog.entity.BlogMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lhj
 * @since 2022-05-25
 */
@Mapper
public interface BlogMessageMapper extends BaseMapper<BlogMessage> {

    List<BlogMessage> findMessageAll();

    List<BlogMessage> findMessageUserAll();

    int insert(@Param("blogMessage") BlogMessage blogMessage);

}
